-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
service/ecr: Refactor to use keyvaluetags library #10325
Conversation
Reference: #7926 Output from acceptance testing: ``` --- PASS: TestAccAWSEcrDataSource_ecrImage (13.77s) --- PASS: TestAccAWSEcrRepository_basic (14.42s) --- PASS: TestAccAWSEcrRepository_immutability (14.53s) --- PASS: TestAccAWSEcrDataSource_ecrRepository (16.21s) --- PASS: TestAccAWSEcrRepository_tags (20.90s) ```
Reference: #10325 (comment) Since the file naming and implementation of these files was inconsistent, the labeling was sometimes inconsistent. We won't be accepting changes to these files anymore in preference of replacing them with the auto-generated `keyvaluetags` library, so removing the hashibot labeling of them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor question/nit, otherwise lgtm!
--- PASS: TestAccAWSEcrLifecyclePolicy_basic (9.66s)
--- PASS: TestAccAWSEcrRepository_basic (9.80s)
--- PASS: TestAccAWSEcrRepository_immutability (9.85s)
--- PASS: TestAccAWSEcrRepositoryPolicy_basic (10.47s)
--- PASS: TestAccAWSEcrLifecyclePolicy_import (10.83s)
--- PASS: TestAccAWSEcrDataSource_ecrRepository (10.95s)
--- PASS: TestAccAWSEcrDataSource_ecrImage (11.02s)
--- PASS: TestAccAWSEcrRepository_tags (13.78s)
--- PASS: TestAccAWSEcrRepositoryPolicy_iam (27.06s)
|
||
d.SetId(aws.StringValue(repository.RepositoryName)) | ||
d.Set("arn", repository.RepositoryArn) | ||
d.Set("arn", arn) | ||
d.Set("registry_id", repository.RegistryId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do any of these need aws.StringValue
s as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question and no -- ResourceData.Set()
automatically handles pointers: https://github.com/hashicorp/terraform-plugin-sdk/blob/6f51fdc99e1e3a27b7445f873f217e2d961869a3/helper/schema/resource_data.go#L178
Resolved plugin SDK conflicts and re-verified:
|
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Reference: #7926
Release note for CHANGELOG:
Output from acceptance testing: